From: Carlos Garnacho Date: Wed, 5 Feb 2020 15:49:34 +0000 (+0100) Subject: magnifier: Use core idletime monitor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~29 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5c570460cfb02cf5fd39d9afa328220703559001;p=gnome-shell.git magnifier: Use core idletime monitor As it's getting the idletime monitor for the seat pointer, boils down to about the same thing. We are moving away from per-device idletime monitors though. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/978 --- diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 953277dd9..d7d3506a5 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -745,8 +745,7 @@ var ZoomRegion = class ZoomRegion { this._xCaret = 0; this._yCaret = 0; - let seat = Clutter.get_default_backend().get_default_seat(); - this._pointerIdleMonitor = Meta.IdleMonitor.get_for_device(seat.get_pointer()); + this._pointerIdleMonitor = Meta.IdleMonitor.get_core(); this._scrollContentsTimerId = 0; }